<?php
	foreach ($fundings as $fund) {
		if ($gescom) {
			echo $form->input('Funding.days', array('value' => $fund['Funding']['days'], 'div' => false, 'disabled' => $disable, 'label'=>__('days', true)));
			echo $form->select('Funding.contract_profils_id', $profils, $fund['Funding']['contract_profils_id']);
		} else {
			echo $form->input('Funding.amount', array('value' => $fund['Funding']['amount'], 'div' => false, 'disabled' => $disable, 'label'=>__('amount', true)));
		}
		echo $form->select('Funding.receiptbook_id', $Receiptbook, $fund['Funding']['receiptbook_id'], array('disabled' => $disable), false);
		echo $form->hidden('Funding.ticket_id', array('value' => $fund['Funding']['ticket_id']));
		echo $form->hidden('Funding.id', array('value' => $fund['Funding']['id']));
		if (!$disable) {
 			echo ' '.$ajax->link(__('delete', true), '/fundings/delete/'. $fund['Funding']['id'] .'/'. $project_id . '/' . $fund['Funding']['ticket_id'], array('update'=>'funding'), 'are you sure?');
		} ?>
		
		<br/>
		<?php
	}
?>